package com.dragon.modules.yuegou.entity.points;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 签到明细表实体类<br>
 * 对应的表为：pt_sign_detail<br>
 * 
 * @author pbuilder generated
 * @date 2019-04-24 17:38:26
 * @company sgy
 * @version 2.0
 */
@TableName("pt_sign_detail")
@ApiModel(description = "签到明细表")
public class SignDetailEntity {

    /**  */
	protected String id;

    /** 商圈id */
	@ApiModelProperty("商圈id")
	protected String busdId;

    /** 会员id */
	@ApiModelProperty("会员id")
	protected String memberId;

    /** 签到获取积分 */
	@ApiModelProperty("签到获取积分")
	protected Integer points;

    /** 获取时间 */
	@ApiModelProperty("获取时间")
	protected LocalDateTime createdTime;

    /** 已连续天数 */
	@ApiModelProperty("已连续天数")
	protected Integer continuousDay;

	/**
	 * 构造一个空签到明细表实体对象
	 */
	public SignDetailEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个签到明细表实体对象
	 * 
	 * @param other 其它对象
	 */
	public SignDetailEntity(SignDetailEntity other){
		super();
     	this.id = other.id;
     	this.busdId = other.busdId;
     	this.memberId = other.memberId;
     	this.points = other.points;
     	this.createdTime = other.createdTime;
     	this.continuousDay = other.continuousDay;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取商圈id
	 * 
	 * @return busdId 商圈id
	 */
	public String getBusdId() {
		return busdId;
	}
  	
	/**
	 * 设置商圈id
	 * 
	 * @param busdId 商圈id
	 */
	public void setBusdId(String busdId) {
		this.busdId = busdId;
	}

	/**
	 * 获取会员id
	 * 
	 * @return memberId 会员id
	 */
	public String getMemberId() {
		return memberId;
	}
  	
	/**
	 * 设置会员id
	 * 
	 * @param memberId 会员id
	 */
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	/**
	 * 获取签到获取积分
	 * 
	 * @return points 签到获取积分
	 */
	public Integer getPoints() {
		return points;
	}
  	
	/**
	 * 设置签到获取积分
	 * 
	 * @param points 签到获取积分
	 */
	public void setPoints(Integer points) {
		this.points = points;
	}

	/**
	 * 获取获取时间
	 * 
	 * @return createdTime 获取时间
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置获取时间
	 * 
	 * @param createdTime 获取时间
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

	/**
	 * 获取已连续天数
	 * 
	 * @return continuousDay 已连续天数
	 */
	public Integer getContinuousDay() {
		return continuousDay;
	}
  	
	/**
	 * 设置已连续天数
	 * 
	 * @param continuousDay 已连续天数
	 */
	public void setContinuousDay(Integer continuousDay) {
		this.continuousDay = continuousDay;
	}

    public String toString() {
		return new StringBuilder().append("SignDetailEntity{").
			append("id=").append(id).
			append(",busdId=").append(busdId).
			append(",memberId=").append(memberId).
			append(",points=").append(points).
			append(",createdTime=").append(createdTime).
			append(",continuousDay=").append(continuousDay).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public SignDetailEntity copy() {
		return new SignDetailEntity(this);
	}

    /**  */
	public static final String COL_ID = "id";

    /** 商圈id */
	public static final String COL_BUSD_ID = "busd_id";

    /** 会员id */
	public static final String COL_MEMBER_ID = "member_id";

    /** 签到获取积分 */
	public static final String COL_POINTS = "points";

    /** 获取时间 */
	public static final String COL_CREATED_TIME = "created_time";

    /** 已连续天数 */
	public static final String COL_CONTINUOUS_DAY = "continuous_day";
}
